@isTest
private class DeleteForumTest {

    static testMethod void myUnitTest() { 
    	

        GenerateEnvironmentTest.gen();
        Test.startTest();       

		DiscussionForum__c testForum = GenerateEnvironmentTest.newDiscussionForum;
    	
		try
		{

			DeleteForumController forum = new DeleteForumController();
			forum.deleteForum();	

            System.currentPageReference().getParameters().put('id', GenerateEnvironmentTest.newDiscussionForum.Id);
			
			DeleteForumController forum1 = new DeleteForumController();

			forum1.setForumId( testforum.Id );
			Id testGetter = forum1.getForumId();
			forum1.deleteForum();	
		}
		catch (DmlException e) 
		{
            System.assert(false,'Data base error')  ;
        }
        Test.stopTest();
    }
}